Pod::Spec.new do |s|
  s.name         = "Alipay"
  s.version      = "0.0.1"
  s.summary      = "支付宝支付SDK."
  s.description  = <<-DESC
                    支付宝支付SDK.
                   DESC
  s.homepage     = "https://gitee.com/YIMaiMall/Alipay"
  s.license      = "MIT"
  s.author             = { "Miles Matheson" => "liyida188@163.com" }
  s.platform     = :ios, "8.0"
  s.source       = { :git => "https://gitee.com/YIMaiMall/Alipay.git", :tag => "#{s.version}" }
  s.subspec "alipay" do |ae|
    ae.public_header_files = 'alipay/*.h'
    ae.source_files = "alipay/*.{h,m}"
    #ae.subspec "openssl" do |ssl|
    #  ssl.source_files = "alipay/openssl/*.{h,m}"
    #end
    ae.subspec "Utils" do |u|
      u.xcconfig           = { 'HEADER_SEARCH_PATHS' => '"${PODS_ROOT}/Alipay/alipay"' }
      u.source_files       = "alipay/Utils/*.{h,m}","alipay/openssl/*.h"
      u.vendored_libraries = 'alipay/libcrypto.a' , 'alipay/libssl.a'
    end
  end
  s.subspec "AlipaySDK" do |as|
    as.resource            = "AlipaySDK/AlipaySDK.bundle"
    as.vendored_frameworks = "AlipaySDK/AlipaySDK.framework"
  end
  s.frameworks   = "Foundation", "UIKit", "SystemConfiguration", "CoreTelephony", "QuartzCore", "CoreText", "CoreGraphics", "UIKit", "Foundation", "CFNetwork", "CoreMotion"
  s.libraries    = "z", "c++" 
  s.requires_arc = true
end
